.connect_commodity_modal {
  height: 99%;
  display: flex;
  flex-direction: column;
  row-gap: 12px;

  .header {
    display: flex;
    column-gap: 5px;
    justify-content: flex-end;

    :deep(.el-input) {
      width: 160px;
    }
  }

  .table {
    max-height: calc(100% - 80px);
  }
  
  .pagination {
    display: flex;
    justify-content: flex-end;
  }
}

.good_detail {
  height: calc(100vh - 92px - 24px);
  margin: 12px;
  padding: 12px;
  box-sizing: border-box;
  background-color: #fff;

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;

    .title {
      font-size: 14px;
      border-left: 3px solid $primaryColor;
      padding-left: 6px;
      font-weight: bold;
    }

    .btn_group {
      display: flex;
      column-gap: 5px;
    }
  }

  .line {
    border-bottom: 1px dotted $dottedLine;
    margin: 12px 0;
  }

  body {
    height: calc(100% - 28px - 25px);
    display: flex;
    background-color: #fff;

    .sidebar {
      width: 300px;

      .header {
        height: 40px;
        box-shadow: 0 -1px 0 #dcdfe6 inset;

        :deep(.el-form) {
          .el-form-item {
            .el-form-item__label,
            .el-form-item__content {
              height: 19px;
              line-height: 19px;
            }

            .el-form-item__content {
              h4 {
                font-size: 14px;
              }
            }
          }
        }
      }

      :deep(.el-form) {
        .img_list {
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
        }
      }
    }

    .line {
      margin: 0 12px;
      border-left: 1px solid #dcdfe6;
    }

    .tabs {
      width: calc(100% - 325px);
      height: 100%;
      display: flex;
      flex-direction: column;

      .tabs_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e4e7ed;

        .tabs_header_options {
          flex: 1;
        }

        :deep(.el-tabs) {
          .el-tabs__header {
            margin: 0;

            .el-tabs__nav-wrap {
              &::after {
                display: none;
              }
            }
          }
        }

        // 产品规格搜索
        .product_specification_search {
          display: flex;
          column-gap: 5px;

          :deep(.el-input) {
            width: 128px;
          }
        }

        // 电子说明书
        .electronic_manual {
          display: flex;
          column-gap: 5px;

          :deep(.el-input) {
            width: 128px;
          }
        }

        // 在线视频
        .online_video {
          display: flex;
          column-gap: 5px;

          :deep(.el-input) {
            width: 128px;
          }
        }
      }

      .tabs_content {
        height: calc(100% - 40px);
        box-sizing: border-box;
        padding-top: 12px;

        // 产品规格
        .product_specification_table {
          height: 100%;
          display: flex;
          flex-direction: column;
          row-gap: 12px;

          .table {
            max-height: calc(100% - 40px - 12px);
          }

          .pagination {
            display: flex;
            justify-content: flex-end;
          }
        }

        // BOM清单
        .bom_list {
          height: 100%;

          .table {
            max-height: 100%;
          }
        }

        // 产品参数
        .product_param {
          height: 100%;
          display: flex;
          flex-direction: column;
          row-gap: 12px;

          .system_param,
          .custom_param {
            max-height: calc(50% - 12px);
            display: flex;
            flex-direction: column;
            row-gap: 2px;

            .table {
              height: calc(100% - 20px);
            }

            .text {
              font-size: 14px;
            }
          }

          .system_param {
            .files {
              display: flex;
              column-gap: 5px;
            }
          }
        }

        // 电子说明书
        .electronic_manual {
          height: 100%;
          display: flex;
          flex-direction: column;
          row-gap: 12px;

          .table {
            max-height: calc(100% - 40px);
          }

          .pagination {
            display: flex;
            justify-content: flex-end;
          }
        }

        // 在线视频
        .online_video {
          display: flex;
          flex-direction: column;
          row-gap: 12px;
          height: 100%;

          .table {
            max-height: calc(100% - 40px);
          }

          .pagination {
            display: flex;
            justify-content: flex-end;
          }
        }

        // 产品介绍
        .product_desc {
          height: 99%;
        }
      }
    }
  }
}

.connect_bom_modal {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  height: 100%;

  .title {
    font-size: 14px;
    padding-left: 6px;
    border-left: 3px solid $primaryColor;
    margin-bottom: 4px;

    span {
      color: $primaryColor;
      font-size: 12px;
      letter-spacing: 1.5px;
    }
  }

  .child {
    max-height: calc(100% - 40px - 12px - 108px);

    .table {
      height: calc(100% - 23px);
    }
  }

  .pagination {
    display: flex;
    justify-content: flex-end;
  }
}

.pdf_preview_dialog {
  display: flex;
  height: 100%;
  align-items: center;
  column-gap: 12px;
}

.app-container {
  height: 100%;
}

.back_bg {
  background-color: #fff;
  margin-bottom: 10px;

  .header_top {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    padding-left: 10px;
    border-bottom: 1px solid #e5e5e5;
  }

  .btns {
    margin-top: 10px;

    .btns-left {
      display: flex;
      align-items: center;
      margin-left: 10px;

      .fa {
        margin-right: 5px;
      }

      .mr5 {
        margin-left: 5px;
      }

      .btn {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
      }
    }
  }
}

.image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  color: #909399;
  font-size: 30px;
}

.main {
  display: flex;
  background-color: #fff;

  .box-card {
    box-sizing: border-box;
    height: 100%;
    padding-bottom: 10px;
    border-radius: 0;
    border: 0;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;

    .img_list {
      display: flex;
      flex-wrap: wrap;
      align-items: center;

      // margin-top: 10px;
      .img {
        width: 70px;
        height: 70px;
        margin-bottom: 5px;

        & + .img {
          margin-right: 5px;
        }

        &:nth-child(1) {
          margin-right: 5px;
        }
      }
    }

    :deep(.el-card__body) {
      padding: 0;
    }

    .header {
      border-bottom: 1px solid #e5e5e5;
      display: flex;
      justify-content: space-between;
      align-items: center;

      :deep(.el-form-item__label) {
        font-size: 12px;
        color: #000;
      }

      h4 {
        font-size: 14px;
      }

      span {
        color: #007cff;
        cursor: pointer;
        margin-left: 10px;
      }
    }

    .form_list {
      :deep(.el-form-item__label) {
        font-size: 12px;
        color: #000;
      }

      :deep(.el-form-item__content) {
        font-size: 12px;
        color: #999;
      }
    }
  }

  .el-main {
    --el-main-padding: 0px;
    margin: 0 10px;
  }

  .demo-tabs {
    .tab-header {
      display: flex;
      justify-content: flex-end;

      .input-with {
        width: 180px;
        margin-right: 5px;
      }

      .mr5 {
        margin-right: 5px;
      }

      .btn {
        display: flex;
        align-items: center;
      }
    }

    .spec-table {
      .state1 {
        color: #00c0c0;
      }

      .state2 {
        color: #999999;
      }
    }

    .text {
      display: inline-block;
      margin-bottom: 5px;
    }

    .footer-pages {
      margin-top: 15px;
      display: flex;
      justify-content: flex-end;
    }
  }
}

.btn_save {
  width: 60px;
}

.btn_delete {
  width: 60px;
  color: #fff;
}

.btn_cancel {
  width: 60px;
}

:deep(.bom-dialog) {
  .el-dialog__body {
    padding: 12px;
  }
}
.bom_list_tabs {
  width: 100%;

  .batch_num {
    background-color: #fff;
    box-shadow: 0 0 5px 1px #e5e5e5;
    font-size: 12px;
    padding: 0 6px;
    line-height: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
  }

  .el-input__icon {
    cursor: pointer;
  }

  :deep(.hover-row) {
    .add_delete {
      display: block;
      cursor: pointer;
    }

    .order {
      display: none;
    }
  }

  .order {
    display: block;
  }

  .add_delete {
    display: none;

    .add {
      padding-right: 5px;
    }
  }
}

.footer_pages {
  display: flex;
  justify-content: end;
}

.btns_xy {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e4e7ed;
  width: 100%;
  text-align: end;

  .ml5 {
    margin-left: 5px;
  }
}

.top_search {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  .input-with-select {
    width: 180px;

    .item-select {
      width: 110px;
    }
  }

  .mr5 {
    margin-right: 5px;
  }
}

.contPro-dialog {
  :deep(.el-table__header) {
    th {
      .cell {
        display: flex;
      }
    }
  }

  .iconfont {
    margin-left: auto;
    font-size: 12px;
    cursor: pointer;
  }
}

.pro-selete {
  width: 100%;
}
